package com.hsp.Demo_05_extends;

public class Demo_01 {
    public static void main(String[] args) {

        Son son = new Son();
    }
}

class GrandPa{
    String name = "大头爷爷";
    String hobby = "旅游";
}

class Father extends GrandPa{
    String name = "大头爸爸";
    int age = 20;
}

class Son extends Father{
    private String name = "大头儿子";
}
